package com.yanqu.road.entity.activity.worldcup;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigInteger;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_u_worldcup", autoSave = true)
public class UserWorldCupData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(select = true, update = true, desc = "玩家ID")
    private long userId;

    @FieldTypeAnnotation(desc = "解数表")
    private Map<Integer, WorldCupSkill> skillMap;
    @FieldTypeAnnotation(desc = "积分")
    private int score;
    @FieldTypeAnnotation(desc = "累计招募球员")
    private int recruitAmount;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public Map<Integer, WorldCupSkill> getSkillMap() {
        return skillMap;
    }

    public void setSkillMap(Map<Integer, WorldCupSkill> skillMap) {
        this.skillMap = skillMap;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getRecruitAmount() {
        return recruitAmount;
    }

    public void setRecruitAmount(int recruitAmount) {
        this.recruitAmount = recruitAmount;
    }
}
